Changed status to result.
Used lookup for rate dividers instead of switch().