Refactored grid template a bit.