Added direction and leaveNoTrace options