Changed main definition