Added writes for keeping history
Added repsonse code in response for batch registration