Added wrap function to micropost