Changed some parameters and added some comments.