Added objectType to update routine