Not quite working properly. Not incrementing the readlines