Modularized code, added init response