Simplifying some function calls