Tested and fixed blog script