Moving the helper procs outside