Completed all specs and inserted them at functions.