Re-organizing code so that it fits inside brain/body construct