Fix bugs and optimise old code