Implemented elsif