Removed fog bug, restored basic functionality