Move install code to external script