Solve PDL bug with optional parameters. Exeption if they are not provided