Fine tuned for arduino performance further