Add code for user activity