Made minor changes as pointed out by Cadair.