Adds new code for initializing