Sets up data, checks for os