Move spore and availabelFields outside the session.