Refacotring Usersim and Output