Began writing installation function (NOT TESTED)