Using formotion with persistence