Converter script for Klaus' script