Added initialize on load functionality.