Add support for the head and tail movement in .lab files.