Lending system, written in BareMetal