Cleans line functions
Implementes waiting -unstable