Add expr factory function