Note: Unsure if last part is needed, clearstatcache() might be enough.