Add direction support to resource listing.