Modified ipsen_function