Optimize

1. Use shorter sub definitions; drop usage of `true`/`false` constants.
2. Use `package _;` to define subs.