Update compile functions