Added optional zoom function.