p5 working, but seems really slow