Fixed namespace and implemented basic flash