Optimize some method