Change to improve timing

Changing the edge detect from async to sync to improve timing