Changed handle visibility to protect from command line