Handle limit cases

Handle limit cases like 0 divide or unsupported observations