Correct clock setup as suggested by Tomas