Added syncronysation in the midnight