Rewrite base file
Remove unnecessary things