Receiving type information from environment instead of hardcoding.