Add swap and improved RAM checking