Code extracted into clean src file