Correcting syntax error with elif.