Fixed type bug, should be long, not int.
Fixed prototype