Hook up all parameters, add dirty flag mechanism