Better functions, better docs