Add resize command and enhance readability