Initializes correctly on load