Change name to lowercase for consistency. Also check that leave is actual.