Refactoring. Reimplemented simple, directed grid generation.