Make properties into a generator. Use 'get' instead of an if/else.