Added changes for leave