Added safe_stat command
Added safe decorator