Simplified script since I only use it on server these days