Integrated all functions