Added new magic methods to the StatefulTrait