Fixed compilation and modified Placing with new ideas