Converted to arduino