Adds convenience function for assigning OS specific values.