Function cleanOperations