Rudimentary implementation.