Added functionality to the 'pay' and 'leaving' variables.