Fixed use errors
Implemented the ResourceStreamWrapper