Added ability to pass object itself into editc