First fully functional code.