Changed maxPost from int to long