Parameters need to be processed more efficiently. Errors in the function need to be logged, not necessarily output to stdout.