Moved processing code to it's own folder