Fleshed out secondary functions.