Added parameter, stream and action validation.
Bug fix in checking existence of search path.