Changed from Double to int