Initialize and refactor encoding model slightly