Fixed Small errors in the Nag function one boolean wasn't set and had refrence to wrong variable.