Add better checking for the appointments