Integrated code, NO TEST please not touch