Moving the executable setting out of library code