Fix some methods to use object syntax