Implemented better idea.