Debug statements in application controller