Design of processing plants