Changed compile function to compiled to avoid naming conflict with python compile function