Variable type bug - long longs to the rescue!