Replace md5 with sha1
Remove superfluous newline
Ensure resources are executed in the right order
Manage settings file