Methods before main working