Internal apc functions
These are not to be called by the user.
Bent Nielsen <bent.nielsen@nuffield.ox.ac.uk> 1 Feb 2016