Modify instance variables and log