Moving apc into its own definition.