Added once() method to Resource class