Changed objectId to int