More tools for functions