Added variable to updateObject() for updates per second