Worker: new pre_loop() method

Signed-off-by: Eduardo Silva <edsiper@gmail.com>