Update for microcontroller compatibility - seriously slows down app