Filled in some set stuff, improved check function output.