Use longs everywhere, speed things up