Sorted out settings and stuff