Made size_t check work on function parameters.