Move post install routine into separate function