A rewrite of the original beclab.