Helper functions for MineClone 2.
