Implemented common agent iterface

Minor refactoring