Removed realpath function