Removing unnecessary acitivites