Function helpers for use with besync, or just because.