Wrap with immediate function