Corrected syntax error.

Had used else if instead of elif.