Defend the function arguments
Make functions consistent