Refactored into more reusable 'Resmable' class