Some useful functions to edit properties.