Added error checking for when callbacks aren't passed in.