Implemented pattern (while) validation #80