Changing few parameters to pass by ref. Updated camera positions.
.