Corrected elsif to if