Added logger
Fixed ActiveModel hook