Added errbit session and params support