Modified to pass more than 9 parameters