Replacing deprecated get() and set() calls. relates to #250