Uses stat to handle that