Changed some parameters and return values to references