First version of the system. NOT TESTED.