Implemented property accessors. (fixed #21)