Minor code cleanup
Check and automatically calculate min dt in move_head