Another much simpler implementation to be tested. It is hopefully a good compromise.