Added compile function (incomplete)