New working code.