Naive optimization ahoy
Upped ver