Added new check function.