Improve obstacle generation