Clear up functions
Change docs