Setting different types of leave