Switching to longs for preferences