Added conditionals to avoid multiple keypress which leads to inconsistencies. Namespace now being written by the means of functions (set and get).