Gravar-mail: Finite-time thermodynamics: Engine performance improved by optimized piston motion