Moved wrapper functions for gating algorithms to their own file.