Enhanced boot behaviour function.