Re-implemented non-integer dimensions but not completely finished yet.