Initialize adapter