Made program work