Updated the command for position being changed from a struct to a class