Added non-interactive method