Added prototype code