Setting a property based on user input