Fix dialyzer and convenience function