Re-add sessions_helper function