Working on net stuff. Implemented the vectorized version of the functions