Code used throughout the platform