Issue #71 - Generic chunks

Done, and also some refactoring with it and rabbit improvement.