First (almost) implementation of piljs.