Added proper implementation for int input params.