Add last activity functions