Changed main script