Add appointments logic