Use code to change properties