Basic Options menu implemented. Minor optimizations.