Refactor & auto panic redirect.