Added checks for swap and disk space
Needed to escape the "$" sign :)