Fixing errors and minifying.