Added an option to change piston max distance.