An alternative implementation.