Revert "Remove bunch of useless code"

Reverts kelvinyap92/CS4900-IPS#1