Main framework implemented