Adding function check