Perliner: refactoring and some fun