Added Start and Stop AFP functions