This is an attempt to use resources more efficiently