Adds functions for cleaning the current buffer