Added if statement to test