Work with Entity SP

Signed-off-by: Alexander Shepetko <a@shepetko.com>