Working preliminary implementation.