Replaced sintable with a function