Used Longs instead of integers in expressions