Added basename.
Added realpath.