Generalized method of moving