Use getters.

Use getter method calls instead of property method calls.
Bug fixes.