Fixed premature optimization.