Adding prototype code