Fully rewritten and optimized thanks to new core resource management
model