First attempt at making a useful general pipeline module.