Changed some return types from type Object to type any so properties and methods of return types can be called