Began some work on checking function arguments.