Added getTempDir method