Changed phase form 0 to 2