Shuffling code to make it available to extensions.