Switching grid representation to be more versitile.