Fixed memory problem. Introduce loading.