Updated imports and SIGWINCH handler