Code optimisations in qtalsavolulme