Implemented appointment swapping