Give external access to calculateNext