Added $post global variable