Add EJ function.