Made everything work in modelsim.