removed Debug mode to speed up, added values from pins