Device opening functionality.