Improved paydate_frequency with accessor method for memory manged var