Fixing ugly first try, looked like shit in vim