Used correct syntax for else if