Writing to TMPDIR in case of glite and introducing pipes to exchange info between processes in SM.