Debugging stuff added, plus post meta functions