File size reduction
Bugfix - make LPO local
Combine next, prev and closest (mainly) into one method.