If statment changed to not exit.