Improve mainContext conversion option