Added labels to next/last statements as required by the OTRS code style guide (WIP).