Add getBlockLocation code back