Finally got the buffered reader working