Changed long to int