Adding presence hooks.