Added the automated check for rewards and added lots of stuff.