Reverted argument from long to int to match native java method