Initial version of the NoSheets.compile function