#286: Stop writing once tag limit is reached

Hope the naming convention is okay!! ;)