Tinkering with some stat functions