Working script for converting