Fixed some strange behaviour, output now frozen