Added LogicalGrid and line drawing functionality.