Fixed some bugs with retrieving metabox values.
Continued bug fixes and optimizations.