Added equation out function