Added path type to direction generation