Modularized parrot, better logging system