Added part of the function for appointment making