If statements fixed, formating edit.