Direction defaults to Dir.NONE. Otherwise produces NPE in some cases.