Add activity functionality