Corrected elsif conditional