Updates quantities