MACGrid almost works, just need to get referencse to work