Removed printf for returning primitive values