Adapted for use in love-kernel.