Added max_print_length to sample configuration
Small changes to PS