Switched to int to avoid short overflow