Another way of resource overloading

See #1240