Implemented constructor that modifies platform parameter as well.