Remove deprecated method calls. Fix #165.

Right. Let's keep it as is for now - just making a note for myself.