Fixes #25. Added delta function