Added default value for the direction parameter in ::all($opts)