Added an option to log moves.