Missed an else statement. Issue fixed!