Total rewrite of convert engine
Total rewrite of convert engine