Even more sensible way to do this, not sure why I never did this before