Camera listener. Small refactorings.