This check should be at beginning I guess.