Changed main according to demands