Added protection for read only activities