Finish up main guard functions.