Add pri/sec functions.