Changed keyword "elseif" in "elif" and changed while statement.