Init to 0 for session, fail on fail