Submit minified version.

Signed-off-by: crynobone <crynobone@gmail.com>
Some code changes

Signed-off-by: crynobone <crynobone@gmail.com>