Attempt to make everything optimized.