Fixed code to pass in master account id