Adding local and example. Changing ints to longs.