* Added functionality to do a custom function/function object check using constructor may not be a fool proof solution but works for now.