Updated pulling logic, also updated compile script