Moved beachline calculations to step.