Advanced memory usage + some comments