Added attending/unattending function.