Revert "Auto Ram Code"

This reverts commit 74ed84787ac02ea2e892698fa1257717561f3fdc.
Revert "Revert "Auto Ram Code""

This reverts commit 96c29e8f60b25b29ae5112b152390cde4b187f6c.