Added prism upgrade and a switch statemnt