Clean up sam clockless code, hopefully improving accuracy on it.