Better SCK Logic, fixed some time-based logic