Various functions useful in making pokemonxy software