Custom mortar

@mlippert wanna eyeball this and see if it can be merged to master?