Restructured post and localhost check.