Partial support for clock domains. Currently only advancing clock domain 0.