Streamlined instruction length

Now to write the function.