Made less repetetive and more clean