Finished fn and apply. Added raise.