Small fix to resolve issue with variables not returning. One ! during one of the if statements.