Refactored readir() for content_stuff to be more flexible