Optimization of the ROCK implementation in the module 'core'