* Rewriting the processing code hwo it should work in my head